home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 52
/
Volume 52 - JOGO DISK .iso
/
Games
/
sandwichcooking.swf
/
scripts
/
frame_11
/
DoAction.as
Wrap
Text File
|
2007-09-27
|
11KB
|
75 lines
function cook()
{
if(_root.no == 1)
{
if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == true && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == true && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == false && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == false && _root.chr.cheese._visible == false)
{
_root.chr.gotoAndPlay("good");
_root.chr.good.gotoAndStop(1);
}
else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == true || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == false || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == false || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == true || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == true || _root.chr.cheese._visible == true)
{
_root.chr.gotoAndPlay("bad");
_root.chr.bad.gotoAndStop(1);
}
}
if(_root.no == 2)
{
if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == false && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == true && _root.chr.peanutbutter._visible == true && _root.chr.sham._visible == false && _root.chr.cheese._visible == false)
{
_root.chr.gotoAndPlay("good");
_root.chr.good.gotoAndStop(2);
}
else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == false || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == true || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == false || _root.chr.peanutbutter._visible == false || _root.chr.sham._visible == true || _root.chr.cheese._visible == true)
{
_root.chr.gotoAndPlay("bad");
_root.chr.bad.gotoAndStop(2);
}
}
if(_root.no == 3)
{
if(_root.chr._currentframe == 8 && _root.chr.subbread2._visible == true && _root.chr.bread2._visible == false && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == false && _root.chr.reggs._visible == false && _root.chr.fegg._visible == true && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == true && _root.chr.cheese._visible == true)
{
_root.chr.gotoAndPlay("good");
_root.chr.good.gotoAndStop(3);
}
else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 7 || _root.chr.subbread2._visible == false || _root.chr.bread2._visible == true || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == true || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == false || _root.chr.cheese._visible == false)
{
_root.chr.gotoAndPlay("bad");
_root.chr.bad.gotoAndStop(3);
}
}
if(_root.no == 4)
{
if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == false && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == false && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == true && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == true && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == false && _root.chr.cheese._visible == true)
{
_root.chr.gotoAndPlay("good");
_root.chr.good.gotoAndStop(4);
}
else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == false || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == true || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == true || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == false || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == false || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == true || _root.chr.cheese._visible == false)
{
_root.chr.gotoAndPlay("bad");
_root.chr.bad.gotoAndStop(4);
}
}
if(_root.no == 5)
{
if(_root.chr._currentframe == 7 && _root.chr.subbread2._visible == false && _root.chr.bread2._visible == true && _root.chr.tomato._visible == false && _root.chr.onion._visible == false && _root.chr.fonion._visible == true && _root.chr.sonion._visible == false && _root.chr.lettuce._visible == false && _root.chr.butter._visible == false && _root.chr.ham._visible == false && _root.chr.tomatos._visible == true && _root.chr.cucumbers._visible == false && _root.chr.dbacon._visible == false && _root.chr.fbacon._visible == false && _root.chr.cucumber._visible == false && _root.chr.slettuce._visible == true && _root.chr.reggs._visible == false && _root.chr.fegg._visible == false && _root.chr.jelly._visible == false && _root.chr.peanutbutter._visible == false && _root.chr.sham._visible == false && _root.chr.cheese._visible == false)
{
_root.chr.gotoAndPlay("good");
_root.chr.good.gotoAndStop(5);
}
else if(_root.chr._currentframe == 2 || _root.chr._currentframe == 3 || _root.chr._currentframe == 4 || _root.chr._currentframe == 5 || _root.chr._currentframe == 6 || _root.chr._currentframe == 8 || _root.chr._currentframe == 9 || _root.chr._currentframe == 10 || _root.chr.subbread2._visible == true || _root.chr.bread2._visible == false || _root.chr.tomato._visible == true || _root.chr.onion._visible == true || _root.chr.fonion._visible == false || _root.chr.sonion._visible == true || _root.chr.lettuce._visible == true || _root.chr.butter._visible == true || _root.chr.ham._visible == true || _root.chr.tomatos._visible == false || _root.chr.cucumbers._visible == true || _root.chr.dbacon._visible == true || _root.chr.fbacon._visible == true || _root.chr.cucumber._visible == true || _root.chr.slettuce._visible == false || _root.chr.reggs._visible == true || _root.chr.fegg._visible == true || _root.chr.jelly._visible == true || _root.chr.peanutbutter._visible == true || _root.chr.sham._visible == true || _root.chr.cheese._visible == true)
{
_root.chr.gotoAndPlay("bad");
_root.chr.bad.gotoAndStop(5);
}
}
}
this.stop();
num = 1;
no = 0;
bad = 0;
good = 0;
stop();